package ast;

import java.io.PrintStream;
import java.util.Map;
import java.util.Scanner;
import java.util.Stack;

public class Program extends ASTNode {
    public final UnitList unitList;

    public Program(UnitList ul, Location loc) {
        super(loc);
        unitList = ul;
    }

    public void print(PrintStream ps) {
        unitList.print(ps, "");
    }

    // interpret: interpret the single unitList in the program
    public AbstractValue interpret(Stack<Map<String, AbstractValue>> state, Scanner scanner) throws Exception {
        unitList.interpret(state, scanner);
        return null;
    }
}
